import java.util.ArrayDeque;
import java.util.Deque;
import java.util.LinkedList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Gao zhao xu
 * Date: 2023-10-12
 * Time: 21:40
 */
public class test2 {
    public static void main(String[] args) {
        Deque<Integer> deque = new LinkedList<>();
        deque.offer(1);
//        Deque<Integer> stack = new LinkedList<>();
//        stack.push(2);;
        Deque<Integer> stack = new ArrayDeque<>();//双端队列的线性实现
        stack.push(2);
    }


}
